package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点位对象 tb_node
 * 
 * @author ruoyi
 * @date 2023-06-14
 */
public class TbNode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点位ID */
    @Excel(name = "点位ID")
    private Long id;

    /** 点位名称 */
    @Excel(name = "点位名称")
    private String nodeName;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 商圈类型 */
    @Excel(name = "商圈类型", readConverterExp = "1=商业区,2=住宅区,3=学校,4=办公区,5=交通枢纽,6=其他")
    private Integer businessType;

    /** 所属区域ID */
    @Excel(name = "所属区域ID")
    private Long regionId;

    /** 所属合作商ID */
    @Excel(name = "所属合作商ID")
    private Long partnerId;
    
    /** 所属区域名称 */
    @Excel(name = "所属区域")
    private String regionName;
    
    /** 所属合作商名称 */
    @Excel(name = "所属合作商")
    private String partnerName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    
    public void setNodeName(String nodeName) 
    {
        this.nodeName = nodeName;
    }

    public String getNodeName() 
    {
        return nodeName;
    }
    
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    
    public void setBusinessType(Integer businessType) 
    {
        this.businessType = businessType;
    }

    public Integer getBusinessType() 
    {
        return businessType;
    }
    
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    
    public void setPartnerId(Long partnerId) 
    {
        this.partnerId = partnerId;
    }

    public Long getPartnerId() 
    {
        return partnerId;
    }
    
    public String getRegionName() 
    {
        return regionName;
    }

    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getPartnerName() 
    {
        return partnerName;
    }

    public void setPartnerName(String partnerName) 
    {
        this.partnerName = partnerName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nodeName", getNodeName())
            .append("address", getAddress())
            .append("businessType", getBusinessType())
            .append("regionId", getRegionId())
            .append("partnerId", getPartnerId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 